Xen PM: Remove useless __sync_lazy_execstate().
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Fri, 20 Jul 2007 09:41:31 +0000 (10:41 +0100)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Fri, 20 Jul 2007 09:41:31 +0000 (10:41 +0100)
Signed-off-by: Keir Fraser <keir@xensource.com>
xen/arch/x86/acpi/power.c
xen/arch/x86/acpi/suspend.c

index 3435955cd224924ca65042192bccaa3c765237a4..47d86cb3efb1fd792ab98041eb1415d39be6c12e 100644 (file)
@@ -119,9 +119,6 @@ static int enter_state(u32 state)
     if ( (state <= ACPI_STATE_S0) || (state > ACPI_S_STATES_MAX) )
         return -EINVAL;
 
-    __sync_lazy_execstate();
-    pmprintk(XENLOG_INFO, "Flush lazy state\n");
-
     if ( !spin_trylock(&pm_lock) )
         return -EBUSY;
 
index 19bb2d3d676607cfde81d86b38d20392939f7e94..3d44569a137c3088b1a972a9dbc7a3e5476c483a 100644 (file)
@@ -38,6 +38,7 @@ void restore_rest_processor_state(void)
     struct tss_struct *t = &init_tss[cpu];
     struct vcpu *v = current;
 
+    /* Rewriting the TSS desc is necessary to clear the Busy flag. */
     set_tss_desc(cpu, t);
     load_TR(cpu);